package com.test.fundible.fundible_00_analytics.fundibledata_sdk.fundiblebeans;

import android.os.Build;
import android.text.TextUtils;

import com.google.gson.Gson;
import com.test.fundible.fundible_00_analytics.fundibledata_sdk.FundibleASBuilder;
import com.test.fundible.fundible_00_utils.FundibleConfigs;
import com.test.fundible.fundible_00_utils.FundibleUtil;

public class FundibleASDecBn {

    public String manufacturer = Build.MANUFACTURER;
    public String laguage;
    public String area;
    public String ip2;
    public String networkEnvironment;
    public String cpu;
    public String path;
    public String tz;
    public String phoneModel = Build.PRODUCT;
    public String sysVersion = Build.VERSION.RELEASE;
    public String deviceName = Build.DEVICE;
    public String brand = Build.BRAND;
    public String screenWidth;
    public String mac;
    public String screenHeight;
    public String app;
    public String token;
    public String product;
    public String version;
    public String androidId;
    public String advertId;
    public String orderId;
    public String imei;
    public String networkData;
    public String frontCameraPixels;
    public String rearCameraPixels;
    public String ram;
    public String rom;
    public String ip;

    public String b420="";
    public String bFsK="";
    public String bzBP="";
    public String o5l7="";
    public String y7Ys="";

    public FundibleASDecBn(){
        this.app = FundibleConfigs.fundibleProduct;
        this.product = FundibleConfigs.fundibleProduct;
        this.token = FundibleUtil.getToken_fundible();
        this.version = FundibleASBuilder.KEY_SDK_VERSION;
        this.androidId = FundibleASBuilder.KEY_ANDROID;
        this.orderId = FundibleASBuilder.KEY_ORDER_ID;
        this.advertId = FundibleASBuilder.KEY_ADVERT_ID;
        this.tz = FundibleASBuilder.KEY_TZ;
    }


    public String getDeviceName_fundible() {return deviceName;}
    public void setDeviceName_fundible(String deviceName) {this.deviceName = deviceName;}
    public String getBrand_fundible() {return brand;}
    public void setBrand_fundible(String brand) {this.brand = brand;}
    public void setVersion_fundible(String version) {this.version = version;}
    public String getPhoneModel_fundible() {return phoneModel;}
    public void setPhoneModel_fundible(String phoneModel) {this.phoneModel = phoneModel;}
    public String getSysVersion_fundible() {return sysVersion;}
    public void setSysVersion_fundible(String sysVersion) {this.sysVersion = sysVersion;}
    public String getCu_fundible() {return cpu;}
    public void setCu_fundible(String cpu) {this.cpu = cpu;}
    public String getApp_fundible() {return app;}
    public void setApp_fundible(String app) {this.app = app;}
    public String getProduct_fundible() {return product;}
    public void setProduct_fundible(String product) {this.product = product;}
    public String getIp2_fundible() {return ip2;}
    public void setIp2_fundible(String ip2) {this.ip2 = ip2;}
    public String toEncryptParams_fundible(String path){
        this.path = path;
        String content = new Gson().toJson(this).trim()+"";
        return FundibleUtil.encryptDefault_fundible(content);
    }
    public void setScreenWidth_fundible(String screenWidth) {this.screenWidth = screenWidth;}
    public String getNetworkData_fundible() {return networkData;}
    public void setNetworkData_fundible(String networkData) {this.networkData = networkData;}
    public String getFrontCameraPixels_fundible() {return frontCameraPixels;}
    public String getManufacturer_fundible() {return manufacturer;}
    public void setManufacturer_fundible(String manufacturer) {this.manufacturer = manufacturer;}
    public String getLaguage_fundible() {return laguage;}
    public void setLaguage_fundible(String laguage) {this.laguage = laguage;}
    public String getArea_fundible() {return area;}
    public void setArea_fundible(String area) {this.area = area;}
    public String getRa_fundible() {return ram;}
    public void setRa_fundible(String ram) {this.ram = ram;}
    public String getRo_fundible() {return rom;}
    public void setRo_fundible(String rom) {this.rom = rom;}
    public String getIp_fundible() {return ip;}
    public void setIp_fundible(String ip) {this.ip = ip;}
    public String getNetworkEnvironment_fundible() {return networkEnvironment;}
    public String getImei_fundible() {return imei;}
    public void setImei_fundible(String imei) {this.imei = imei;}
    public String getMac_fundible() {return mac;}
    public void setMac_fundible(String mac) {this.mac = mac;}
    public String getScreenHeight_fundible() {return screenHeight;}
    public void setScreenHeight_fundible(String screenHeight) {this.screenHeight = screenHeight;}
    public String getScreenWidth_fundible() {return screenWidth;}
    public void setNetworkEnvironment_fundible(String networkEnvironment) {this.networkEnvironment = networkEnvironment;}
    public String getToken_fundible() {return token;}
    public void setToken_fundible(String token) {this.token = token;}
    public String getVersion_fundible() {return version;}
    public void setFrontCameraPixels_fundible(String frontCameraPixels) {
        if (!TextUtils.isEmpty(frontCameraPixels)) setbFsK(frontCameraPixels);
        this.frontCameraPixels = frontCameraPixels;
    }
    public String getRearCameraPixels_fundible() {return rearCameraPixels;}
    public void setRearCameraPixels_fundible(String rearCameraPixels) {
        if (!TextUtils.isEmpty(rearCameraPixels)) setB420(bFsK);
        this.rearCameraPixels = rearCameraPixels;
    }

    public void setB420(String b420) {
        this.b420 = b420;
    }

    public void setbFsK(String bFsK) {
        this.bFsK = bFsK;
    }

    public void setBzBP(String bzBP) {
        this.bzBP = bzBP;
    }

    public void setO5l7(String o5l7) {
        this.o5l7 = o5l7;
    }

    public void setY7Ys(String y7Ys) {
        this.y7Ys = y7Ys;
    }
}
